package com.smartparking.repository;

import com.smartparking.entity.PaymentGatewayBill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @author ganru
 * @date 2025/11/3 19:01
 */
@Repository
public interface PaymentGatewayBillRepository extends JpaRepository<PaymentGatewayBill, Integer> {
    // 查找某个支付平台的账单
    List<PaymentGatewayBill> findByGatewayName(String gatewayName);

    // 查找某个日期的支付渠道账单
    List<PaymentGatewayBill> findByBillDate(Date billDate);

    // 查找未匹配的账单
    List<PaymentGatewayBill> findByStatus(String status);  // 匹配、未匹配
}